NameError: name 'mobile' is not defined